import axios from 'axios'
import type { QingHua } from './types'

const getQinghua = async (): Promise<QingHua> => {
  const res = await axios.get('https://api.uomg.com/api/rand.qinghua?format=json')
  return res.data
}

export default { getQinghua }
